package com.hzeport.bgs22emduty.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.masa.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = true)
@TableName("EMDU_BASE_DEPT_INFO")
@ApiModel(value = "部门信息表")
public class BaseDeptInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "父级数据条目ID")
    @TableField(value = "PARENT_ID")
    @JsonProperty(value = "parentid")
    private String parentid;


    @ApiModelProperty(value = "H4A的部门全路径")
    @TableField(value = "DEPT_FULL_NAME")
    @JsonProperty(value = "deptFullName")
    private String deptFullName;


    @ApiModelProperty(value = "H4A的部门名称")
    @TableField(value = "DEPT_NAME")
    @JsonProperty(value = "deptName")
    private String deptName;


    @ApiModelProperty(value = "排序，用于调整数据顺序")
    @TableField(value = "GLOBAL_SORT")
    @JsonProperty(value = "globalSort")
    private String globalSort;

    @ApiModelProperty(value = "H4A部门GUID")
    @TableField(value = "ORG_GUID")
    @JsonProperty(value = "orgGuid")
    private String orgGuid;

    @JsonProperty(value = "sCount")
    @TableField(exist = false)
    private Long sCount = 0L;

    @ApiModelProperty(value = "是否为不使用的科级部门：1. 是；0. 否")
    @TableField(value = "NOT_USE_KJ_DEPT")
    @JsonProperty(value = "notUseKJDept")
    private String notUseKJDept;


    @ApiModelProperty(value = "关区GUID，源自H4A")
    @TableField(value = "CUSTOM_ID")
    @JsonProperty(value = "customId")
    private String customId;


    @ApiModelProperty(value = "关区中文名称")
    @TableField(value = "CUSTOM_NAME")
    @JsonProperty(value = "customName")
    private String customName;
}
